package com.zhengjiang.enumtest;

/**
 * @author zhengjiang
 * @version 1.0.0
 * @description
 * @date 2021/5/30
 **/
public enum GenderEnum  implements GenderDesc{
    MALE("男"), FEMAL("女");

    private final String name;

    private GenderEnum(String name) {
        this.name = name ;
    }

    public String getName() {
        return this.name;
    }

    @Override
    public void info(String genderDesc) {
        System.out.println("this is a gender enum class!" + genderDesc );
    }
}
